import Http from "@/http"

export function pageApi(params:any) {
    return Http.post('portModel/page', params)
}

export function saveApi(params:any) {
    return params.id ? Http.put('portModel/update/' + params.id, params) : Http.post('portModel/add', params)
}

export function deleteApi(id) {
    return Http.delete('portModel/delete/' + id)
}

export function optionsApi() {
    return Http.get('portModel/options')
}